<script type="text/javascript">       

$(document).ready(function(){    

    $("#edit_listing").change(function(){

        location = $("#edit_listing").val();

    });        

});

</script>

<h3 class="purple">directory users<span><a href="<?php echo site_url('admin/design_directory')?>">< back to list</a></span></h3>

<hr />

<p class="f15 purple1">

<?php 

if(!empty($company['company'])){

    echo $company['company'];

}else{

    echo "Company name not defined yet";

} 

?>&nbsp;&nbsp;&nbsp;

<select name="sub" id="edit_listing" class="right" style="min-width:250px; margin-right:0px;">

<?php /*?><option value="<?php echo site_url('admin/design_directory/activation/id')?>/<?php echo $company['id']?>" 

<?php if(!empty($activation)){ ?>selected="selected"<?php } ?>>Activation</option><?php */?>

<option value="<?php echo site_url('admin/design_directory/login_detail/id')?>/<?php echo $company['id']?>" 

<?php if(!empty($login_detail)){ ?>selected="selected"<?php } ?>>Login Details</option>

<option value="<?php echo site_url('admin/design_directory/company_detail/id')?>/<?php echo $company['id']?>"

<?php if(!empty($company_detail)){ ?>selected="selected"<?php } ?>>Company Details</option>

<?php /*?><option value="<?php echo site_url('admin/design_directory/products/id')?>/<?php echo $company['id']?>/service/product"
<?php if(!empty($products)){ ?>selected="selected"<?php } ?>>Products</option><?php */?>

<option value="<?php echo site_url('admin/design_directory/products/id')?>/<?php echo $company['id']?>/service"
<?php if(!empty($services)){ ?>selected="selected"<?php } ?>>Design Services</option>

<?php /*?><option value="<?php echo site_url('admin/design_directory/products/id')?>/<?php echo $company['id']?>/service/brands"
<?php if(!empty($brands)){ ?>selected="selected"<?php } ?>>Brands</option><?php */?>
<?php /*?><option value="<?php echo site_url('admin/design_directory/branch/id')?>/<?php echo $company['id']?>"
<?php if(!empty($branch)){ ?>selected="selected"<?php } ?>>Branch Detail</option><?php */?>

<option value="<?php echo site_url('admin/design_directory/photo/id')?>/<?php echo $company['id']?>"

<?php if(!empty($photo)){ ?>selected="selected"<?php } ?>>Portfolio images</option>

<?php /*?><option value="<?php echo site_url('admin/design_directory/news/id')?>/<?php echo $company['id']?>"

<?php if(!empty($news)){ ?>selected="selected"<?php } ?>>News</option>
<?php */?>

<option value="<?php echo site_url('admin/design_directory/statistics/id')?>/<?php echo $company['id']?>"

<?php if(!empty($statistic)){ ?>selected="selected"<?php } ?>>Statistics</option>

<option value="<?php echo site_url('admin/design_directory/company_delete/id')?>/<?php echo $company['id']?>"

<?php if(!empty($delete)){ ?>selected="selected"<?php } ?>>Delete</option>

</select>

<?php

// date formatting

$alert_unix = strtotime($company['last_edited']);

$alert_time = date('H:i',$alert_unix);

$alert_date = date('d M Y',$alert_unix);

?></p>

<?php /*?><hr />

<p class="f13 purple">Last directory update: <strong><?php echo $alert_date ?> at <?php echo $alert_time ?></strong>

<span class="right black" style="width:340px; display:inline-block"> <?php echo $company['view_count'] ?> advert views - <?php echo $company['lead_count'] ?> leads sent</span></p><?php */?>